module.exports = {
  ignores: [(commit) => commit.includes("初始化")],
  extends: ["@commitlint/config-conventional"],
  parserPreset: {
    parserOpts: {
      headerPattern: /^(.*)\s(.*)/,
      headerCorrespondence: ["type", "subject"]
    }
  },
  rules: {
    "subject-case": [0],
    "type-enum": [2, "always", ["新增", "修复", "更新", "修改", "优化", "样式", "重构", "性能", "测试", "构建", "集成", "回退", "其他"]]
  }
};
